// Test.cpp : Defines the entry point for the console application.
//
#include <stdio.h>

#include "../Src/FXParser.h"

#ifdef _DEBUG
#pragma comment(lib, "../Lib/Debug/FXParser.lib")
#endif



int main(int argc, char* argv[])
{
    FILE* file = fopen("../test.fx", "r");
    if (file != NULL)
    {
        fseek(file, 0L, SEEK_END);
        unsigned int size = ftell(file);
        char* buffer = new char[size+1];
        rewind (file);
        fread(buffer, 1, size, file);
        buffer[size] = 0;

        FXParser::FXDesc desc;
        String strOutput;
        FXParser::ParseFxString(buffer, &strOutput, &desc);

        delete buffer;
        fclose(file);
    }
	return 0;
}

